import sys
from PyQt4 import QtGui 
import win32service
import client
import windowsService

for arg in sys.argv: 
    print arg

hostAddress = "192.168.0.129"
refreshTime = 30000

print (len(sys.argv))
if len(sys.argv) == 1:
    print "Param required hostAddress. \n runclient serverAddress refreshTime in milliseconds\n EX: runclient 192.168.0.129 5000"
else:
    app = QtGui.QApplication(sys.argv, QtGui.QApplication.Tty)
    clientProc = client.ClientProcess(hostAddress, refreshTime, None)
    sys.exit(app.exec_())
    
    
